<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>账号列表</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/static/css/font.css">
        <link rel="stylesheet" href="/static/css/xadmin.css">
        <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/static/js/xadmin.js"></script>
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="x-nav">
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <div style="float:left;width:20%;">
                                {if condition="$userinfo.user_img eq ''"}
                                <img src="/static/images/title.jpeg" style="width:80%;"/>
                                {else /}
                                <img src="{$userinfo.user_img}" style="width:80%;"/>
                                {/if}
                            </div>
                            <div style="float:right;width:80%;">
                                <table class="layui-table">
                                    <tr>
                                        <td>
                                            <span>客户编号:{$userinfo.user_sn}</span>
                                        </td>
                                        <td>
                                            <span>客户类型：{$userinfo.u_type}</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>客户姓名：{$userinfo.username}</span>
                                        </td>
                                        <td>
                                            <span>客户称呼：{$userinfo.nkname}</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>性别：{$userinfo.sex}</span>
                                        </td>
                                        <td>
                                            <span>年龄：{$userinfo.age}</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>联系方式：{$userinfo.phone}</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>备用联系方式：{$userinfo.spare_phone}</span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div style="clear:both"></div>
						<div class="layui-card-body" style="margin-top:50px;">
                            <div class="page">
                                <button  class="layui-btn" lay-filter="close" lay-submit="">取 消</button>
                                <button  class="layui-btn" lay-filter="sure" lay-submit="">确 定</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
        <script>
        var username = "{$userinfo.username}";
        var nkname = "{$userinfo.nkname}";
        var phone = "{$userinfo.phone}";
        var spare_phone = "{$userinfo.spare_phone}";
        var user_sn = "{$userinfo.user_sn}";
        layui.use(['form', 'layer'],
        function() {
            $ = layui.jquery;
            var form = layui.form,
            layer = layui.layer;
            /*确地*/
            form.on('submit(sure)',
            function(data) {
               $("#username", parent.document).val(username);
               $("#nkname", parent.document).val(nkname);
               $("#phone", parent.document).val(phone);
               $("#spare_phone", parent.document).val(spare_phone);
               $("#uid", parent.document).val(user_sn);
               //关闭当前frame
               xadmin.close();
                return false;
            });
            /*关闭页面*/
            form.on('submit(close)',
            function(data) {
                //关闭当前frame
                xadmin.close();
                return false;
            });
        });
        </script>
    </body>
</html>